<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>巴士管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
	$(document).ready(function() {
		
	});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/bus/tCompBus/list?types=${types}">巴士管理列表</a></li>
		<shiro:hasPermission name="bus:tCompBus:edit"><li><a href="${ctx}/bus/tCompBus/form?types=${types}">巴士管理添加</a></li></shiro:hasPermission>
	    <li class="active"><a href="${ctx}/bus/tCompBus/state?types=${types}">巴士调度情况查询</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="tCompBus" action="${ctx}/bus/tCompBus/state/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<input id="types" name="types" type="hidden" value="${types}"/>
		<ul class="ul-form">
			<li><label>车牌号：</label>
			<form:input path="licenseno" maxlength="50" class="input-medium"/></li>
			<li><label>时间：</label>
			<input type="text" id="createDateQueryStart" name="createDateQueryStart" maxlength="20" readonly class="input-small Wdate"
				value="<fmt:formatDate value="${tRealscheVehi.createDateQueryStart  }" pattern="yyyy-MM-dd" />" onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true,maxDate:'#F{$dp.$D(\'createDateQueryEnd\')}'});" />
			至&nbsp; <input type="text" id="createDateQueryEnd"	name="createDateQueryEnd" maxlength="20" readonly class="input-small Wdate" value="<fmt:formatDate value="${tRealscheVehi.createDateQueryEnd  }" pattern="yyyy-MM-dd" />"
				onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true,minDate:'#F{$dp.$D(\'createDateQueryStart\')}'});" /></li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>车牌号</th>
				<th>车型</th>
				<th>出发时间</th>
				<th>天数</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="TRealscheVehi">
			<tr>
				<td>${TRealscheVehi.licno}</td>
				<td>${TRealscheVehi.busname}</td>
				<td><fmt:formatDate value="${TRealscheVehi.departtime }" pattern="yyyy-MM-dd HH:mm" /></td>
				<td>${TRealscheVehi.duringdays}</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>